package ch6oopexerpet;

public class Dog extends Pet{//狗还有抓老鼠的方法，

    public Dog() {
    }

    public Dog(String name, String kind, double weight) {
        super(name, kind, weight);
    }

    public void eat(){
        System.out.println("狗吃骨头");
    }
    public void sleep(){
        System.out.println("狗睡觉很可爱的");
    }
    public void dogMethod(){
        System.out.println("抓老鼠");
    }
    public void show(){
        super.show();
        dogMethod();
    }
}
